package uk.co.q3c.deplan.client.ui.mock.widget;

import com.google.gwt.user.client.Command;

public class CommandButtonMock extends MockWidget {

	private Command command;

	public CommandButtonMock() {
		super();
	}

	public void click() {
		if (command != null) {
			command.execute();
		}
	}

	public Command getCommand() {
		return command;
	}

	public void setCommand(Command command) {
		this.command = command;
	}
}
